<?php
if ($scripts = $this->Lil->jsReadyOut()) {
	$content_for_layout .= '<script type="text/javascript">' . $scripts . '</script>';
}
//if (isset($_POST['lil_submit'])) {
	echo '{"data": ';
	echo json_encode(rawurlencode($content_for_layout));
	echo '}';
//} else {
//	echo $content_for_layout;
//}